import pytest

a = {'username': 'admin', 'password': 'admin123'}
b = {"username": "guest", "password": "guest123"}
c = {"username": "user", "password": "user123"}

la = list(a.values())
lb = list(b.values())
lc = list(c.values())

wedsite = ["https://www.test.com", "https://www.pre.com", "https://www.online.com"]


@pytest.fixture(params=[la,lb,lc])
def quanxian(request):
    return request.param


@pytest.fixture(params=[wedsite])
def environment(request):
    return request.param


@pytest.mark.parametrize("quanxian", [la, lb, lc], ids=['admin', 'guest', 'user'])
@pytest.mark.parametrize("environment", wedsite,
                         indirect=True)
def test_log(environment, quanxian):
    print('Loggin', environment, quanxian[0], 'with password', quanxian[1])

    pass

# @pytest.mark.parametrize('website',['https://www.test.com',"https://www.pre.com",'https://www.online.com'])
# @pytest.mark.parametrize('user',[a,b,c])
# def test_moni(self,):
# ,'with password',quanxian
